<!DOCTYPE HTML>
<html>
<head>
<include file="Public:head" />
</head>

<body>
<include file="Public:header" />
<div class="midder">


    <div class="mc">
    
        <div id="group-info">
            <h1 class="group_tit">{$seo.title}</h1>
            <div class="group-misc">
                    <a href="javascript:;" class="button-join" rel="nofollow" onClick="$('#select-bar').show()">
                        <span>+我要发言</span>
                    </a>
                    <div id="select-bar" style="display:none" onmouseleave="$('#select-bar').hide()">
                    	<h3>选择小组：</h3>
                        <ul>
                        	<if condition="$myGroups">
                        	<foreach name="myGroups" item="item">
                        		<li><a href="{:U('group/topic/add',array('id'=>$item['groupid']))}">{$item['groupname']}</a></li>
                            </foreach>
                             <else/>
                            <li>你还没有加入任何小组， <a href="{:U('group/index/create')}">+申请创建小组</a>&nbsp;&nbsp;&nbsp;<a href="{:U('group/explore/groups')}">发现小组&gt;&gt;</a></li>
                            </if>
                        </ul>
                    </div>
            </div>
        </div>
            
        <div class="cleft w700">


            <div class="group_topics">
                <table class="olt">
                    <tbody>
            <if condition="!empty($arrTopic)">
            <foreach name="arrTopic" item="item">
               <tr class="pl">
               <td class="td-subject"><a title="{$item[title]}" href="{:U('group/topic/show',array('id'=>$item['topicid']))}"><php>echo sub_str($item['title'],25);</php></a>
                <if condition="$item[isvideo] eq 1">
                <img src="__PUBLIC__/Static/images/lc_cinema.png" align="absmiddle" title="[视频]" alt="[视频]" />
                </if>                
                <if condition="$item[istop] eq 1">
                <img src="__PUBLIC__/Static/images/headtopic_1.gif" title="[置顶]" alt="[置顶]" />
                </if>
                <if condition="$item[addtime] gt (strtotime(date('Y-m-d 00:00:00')))">
                <img src="__PUBLIC__/Static/images/topic_new.gif" align="absmiddle"  title="[新帖]" alt="[新帖]" />
                </if> 
                <if condition="$item[isphoto] eq 1">
                <img src="__PUBLIC__/Static/images/image_s.gif" title="[图片]" alt="[图片]" align="absmiddle" />
                </if> 
                <if condition="$item[isattach] eq 1">
                <img src="__PUBLIC__/Static/images/attach.gif" title="[附件]" alt="[附件]" />
                </if> 
                <if condition="$item[isdigest] eq 1">
                <img src="__PUBLIC__/Static/images/posts.gif" title="[精华]" alt="[精华]" />
                </if>
                </td>
                <td class="td-reply" nowrap="nowrap"><if condition="$item['count_comment'] gt 0">{$item['count_comment']} 回应</if></td>
                <td class="td-time" nowrap="nowrap"><php> echo getTime($item['uptime'],time());</php></td>
                <td align="right"><a href="{:U('group/index/show',array('id'=>$item['groupid']))}"><php>echo sub_str($item['group']['groupname'],10);</php></a></td>
                </tr>
             </foreach>
            </if>         
                </tbody>
              </table>
            </div>
            
             
            
            <div class="clear"></div>
    
    
    	</div>
    
        <div class="cright w250" id="cright">   
              
			<include file="my_menu" />                 
        
        </div>
    
    </div><!--//mc-->


</div>                
<include file="Public:footer" />
</body>
</html>